#!/usr/bin/env sh

echo -n > .gitignore

ls . | while read -r file; do
  if ! file $file | grep -q "text executable" ; then
    echo $file >> .gitignore
  fi
done
